/*******************************************************************************
*Project :       	Covid-19 Stay At Home Paper
*Purpose : 		    Do-file that renames appendix tables and figures for the paper
*STATA version: 	17.0
*Author: 			Diane Alexander and Ezra Karger 
*******************************************************************************/

global figures_map "${machine}/maps"
global tables "${machine}/tables/event_time/main"
global figures "${machine}/figures/event_time/main"
global tables_sdfe "${machine}/tables/event_time/statedayfe"
global figures_sdfe "${machine}/figures/event_time/statedayfe"
global tables_sm "${machine}/tables/event_time/secondmeasure"
global figures_sm "${machine}/figures/event_time/secondmeasure"
global tables_hr "${machine}/tables/horserace"
global figures_cal "${machine}/figures/calendar_time"
global figures_agg "${machine}/figures/aggregate"
global figures_did "${machine}/figures/did"
global tables_sum "${machine}/tables/summary"

global appendix "${machine}/text/forappendix"

*Figure A1
copy "${figures_cal}/cases_caltime.pdf" "${appendix}/FA1a.pdf", replace
copy "${figures_cal}/deaths_caltime.pdf" "${appendix}/FA1b.pdf", replace

*Figure A2
copy "${figures_agg}/aggregate.pdf" "${appendix}/FA2a.pdf", replace
copy "${figures_agg}/amazon_others.pdf" "${appendix}/FA2b.pdf", replace

*Figure A3
copy "${figures_did}/distance.png" "${appendix}/FA3a.png", replace
copy "${figures_did}/visit.png" "${appendix}/FA3b.png", replace
copy "${figures_did}/log_pe_food.png" "${appendix}/FA3c.png", replace
copy "${figures_did}/log_pe_other.png" "${appendix}/FA3d.png", replace

*Figure A4
copy "${figures_did}/sm_logsales_sector_percap_retail.png" "${appendix}/FA4a.png", replace
copy "${figures_did}/sm_logsales_sector_percap_nonreta.png" "${appendix}/FA4b.png", replace
copy "${figures_did}/sm_logsales_sector_percap_fooddel.png" "${appendix}/FA4c.png", replace
copy "${figures_did}/sm_logsales_sector_percap_amazon.png" "${appendix}/FA4d.png", replace

*Figure A5
copy "${figures_cal}/hist_total.pdf" "${appendix}/FA5a.pdf", replace
copy "${figures_cal}/hist_incsplit.pdf" "${appendix}/FA5b.pdf", replace
copy "${figures_cal}/hist_trumpsplit.pdf" "${appendix}/FA5c.pdf", replace
copy "${figures_cal}/hist_timingsplit.pdf" "${appendix}/FA5d.pdf", replace

*Figure A6
copy "${figures_cal}/distance_caltime.pdf" "${appendix}/FA6a.pdf", replace
copy "${figures_cal}/visit_caltime.pdf" "${appendix}/FA6b.pdf", replace
copy "${figures_cal}/pe_r_food_caltime.pdf" "${appendix}/FA6c.pdf", replace
copy "${figures_cal}/pe_r_other_caltime.pdf" "${appendix}/FA6d.pdf", replace

*Figure A7
copy "${figures_map}/state_stay_at_home.png" "${appendix}/FA7.png", replace

*Figure A8
copy "${figures_sm}/accomodation_event_all_half_wtd.pdf" "${appendix}/FA8a.pdf", replace
copy "${figures_sm}/finance_event_all_half_wtd.pdf" "${appendix}/FA8b.pdf", replace
copy "${figures_sm}/hotel_event_all_half_wtd.pdf" "${appendix}/FA8c.pdf", replace
copy "${figures_sm}/grocery_event_all_half_wtd.pdf" "${appendix}/FA8d.pdf", replace
copy "${figures_sm}/transport_event_all_half_wtd.pdf" "${appendix}/FA8e.pdf", replace
copy "${figures_sm}/pharmacies_event_all_half_wtd.pdf" "${appendix}/FA8f.pdf", replace
copy "${figures_sm}/restaurants_event_all_half_wtd.pdf" "${appendix}/FA8g.pdf", replace
copy "${figures_sm}/retail_trade_event_all_half_wtd.pdf" "${appendix}/FA8h.pdf", replace

*Figure A9
copy "${figures}/visit_incsplit.pdf" "${appendix}/FA9a.pdf", replace
copy "${figures}/log_pe_other_incsplit.pdf" "${appendix}/FA9b.pdf", replace
copy "${figures}/visit_trumpsplit.pdf" "${appendix}/FA9c.pdf", replace
copy "${figures}/log_pe_other_trumpsplit.pdf" "${appendix}/FA9d.pdf", replace
copy "${figures}/visit_timingsplit.pdf" "${appendix}/FA9e.pdf", replace
copy "${figures}/log_pe_other_timingsplit.pdf" "${appendix}/FA9f.pdf", replace

*Figure A10
copy "${figures}/distance_trumptimingsplit.pdf" "${appendix}/FA10a.pdf", replace
copy "${figures}/distance_demtimingsplit.pdf" "${appendix}/FA10b.pdf", replace
copy "${figures}/visit_trumptimingsplit.pdf" "${appendix}/FA10c.pdf", replace
copy "${figures}/visit_demtimingsplit.pdf" "${appendix}/FA10d.pdf", replace
copy "${figures}/log_pe_all_trumptimingsplit.pdf" "${appendix}/FA10e.pdf", replace
copy "${figures}/log_pe_all_demtimingsplit.pdf" "${appendix}/FA10f.pdf", replace

*Figure A11
copy "${figures_sdfe}/distance_byevent_sdfe.pdf" "${appendix}/FA11a.pdf", replace
copy "${figures_sdfe}/visit_byevent_sdfe.pdf" "${appendix}/FA11b.pdf", replace
copy "${figures_sdfe}/log_pe_food_byevent_sdfe.pdf" "${appendix}/FA11c.pdf", replace
copy "${figures_sdfe}/log_pe_other_byevent_sdfe.pdf" "${appendix}/FA11d.pdf", replace

*Figure A12
copy "${figures}/log_pe_all_byevent.pdf" "${appendix}/FA12.pdf", replace

*Figure A13
copy "${figures_sm}/all_event_all_half_wtd.pdf" "${appendix}/FA13.pdf", replace

*Table A1
copy "${tables_sum}/summary_womply_total.tex" "${appendix}/TA1.tex", replace

*Table A2
copy "${tables_sum}/summary_womply_business.tex" "${appendix}/TA2.tex", replace
 
*Table A3
copy "${tables_sum}/summary_second_measure_total.tex" "${appendix}/TA3.tex", replace

*Table A4
copy "${tables_sum}/summary_second_measure_consumer.tex" "${appendix}/TA4.tex", replace




